Fix a memory leak in the built-in GnuTLS support.
authorChong Yidong <cyd@gnu.org>
Thu, 27 Oct 2011 06:07:09 +0000 (14:07 +0800)
committerChong Yidong <cyd@gnu.org>
Thu, 27 Oct 2011 06:07:09 +0000 (14:07 +0800)
commitccdec4fb844988aa7497589e59fef1f9ee776c0b
tree304d8a068bfc63da44b0697998f3e7acc4363442
parentdf30c8add60b45053dca8fcd5b442a4963810cc3
Fix a memory leak in the built-in GnuTLS support.
* src/gnutls.c (emacs_gnutls_deinit): New function.  Deallocate
credentials structures as well as calling gnutls_deinit.
(Fgnutls_deinit, Fgnutls_boot): Use it.

* src/process.c (make_process): Initialize GnuTLS credentials to NULL.
(deactivate_process): Call emacs_gnutls_deinit.
src/ChangeLog
src/gnutls.c
src/gnutls.h
src/process.c